package com.zz.stringJoiner;

import java.util.StringJoiner;

public class Test {
    public static void main(String args[]){
//        StringJoiner s = new StringJoiner(",");字符串之间的间隔符
        StringJoiner s = new StringJoiner(",", "[", "]");
        s.add("java");
        s.add("java");
        s.add("java");
        System.out.println(s);
    }
}
